﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LogBookImporter.Exceptions {
    public class ImporterException : Exception {

        private string _customMessage = string.Empty;

        public string CustomMessage {
            get {
                return _customMessage;
            }
            set {
                _customMessage = value;
            }
        }

        
        public override string Message {
            get {
                return string.Format("Line {3}:{0}{1}{2}", CustomMessage, Environment.NewLine, base.Message, LineNumber);
            }
        }

        public int LineNumber {
            get;
            set;
        }
    }
}
